package com.summba.common;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class GetResource {
	
	private String saveFilePath = "";
	private String filesPath = "";
	private String splitFilePath = "";
	private String splitSaveFilePath = "";
	private String segWordResFile = "";
	private String corpusPathFloder = "";
	private String keyResSave = "";
	
	public GetResource(){
		InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("path.properties"); 
		Properties p = new Properties(); 
		try {
			p.load(inputStream);
			filesPath = p.getProperty("p");
			saveFilePath = p.getProperty("save");
			splitFilePath = p.getProperty("split-path");
			splitSaveFilePath = p.getProperty("split-save-path");
			segWordResFile = p.getProperty("seg_res_file");
			corpusPathFloder = p.getProperty("corpus_path_floder");
			keyResSave = p.getProperty("keyword_res_save");
			
			//System.out.println("splitFilePath : " +splitFilePath);
			
		} catch (IOException e) {
			e.printStackTrace();
		}  
	}
	
	public String getCorpusPathFloder(){
		return corpusPathFloder;
	}
	
	public String getKeyResSave(){
		return keyResSave;
	}
	
	public String getSaveFilePath(){
		return saveFilePath;
	}
	
	public String getFilesPath(){
		return filesPath;
	}
	
	public String getSplitFilePath(){
		return splitFilePath;
	}
	
	public String getSplitSaveFilePath(){
		return splitSaveFilePath;
	}
	
	public String getSegWordResFile(){
		return segWordResFile;
	}

}
